package com.yanqu.road.logic.bussiness.kowloon;

import com.yanqu.road.entity.kowloon.KowloonBuildingData;
import com.yanqu.road.entity.kowloon.KowloonHeroData;
import com.yanqu.road.entity.kowloon.KowloonUserData;
import com.yanqu.road.entity.kowloon.config.KowloonBuildingConfig;
import com.yanqu.road.entity.kowloon.config.KowloonNpcConfig;
import com.yanqu.road.entity.kowloon.config.KowloonMissionRoadConfig;
import com.yanqu.road.entity.kowloon.enums.eKowloonNpcType;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class KowloonBusiness {

    public static KowloonUserData getKowloonUserData(long userId) {
        return DaoHelper.getKowloonUserDataDaoImpl().getKowloonUserData(userId);
    }

    public static boolean addKowloonUserData(KowloonUserData kowloonUserData) {
        return DaoHelper.getKowloonUserDataDaoImpl().add(kowloonUserData);
    }

    public static boolean updateKowloonUserData(KowloonUserData kowloonUserData) {
        return DaoHelper.getKowloonUserDataDaoImpl().update(kowloonUserData);
    }

    public static Map<Integer, KowloonBuildingData> getKowloonBuildingDataMap(long userId) {
        return DaoHelper.getKowloonBuildingDataDaoImpl().getKowloonBuildingDataMap(userId);
    }

    public static boolean addKowloonBuildingData(KowloonBuildingData kowloonBuildingData) {
        return DaoHelper.getKowloonBuildingDataDaoImpl().add(kowloonBuildingData);
    }

    public static boolean updateKowloonBuildingData(KowloonBuildingData kowloonBuildingData) {
        return DaoHelper.getKowloonBuildingDataDaoImpl().update(kowloonBuildingData);
    }

    public static Map<Integer, KowloonHeroData> getKowloonHeroDataMap(long userId) {
        return DaoHelper.getKowloonHeroDataDaoImpl().getKowloonHeroDataMap(userId);
    }

    public static boolean addKowloonHeroData(KowloonHeroData kowloonHeroData) {
        return DaoHelper.getKowloonHeroDataDaoImpl().add(kowloonHeroData);
    }

    public static boolean updateKowloonHeroData(KowloonHeroData kowloonHeroData) {
        return DaoHelper.getKowloonHeroDataDaoImpl().update(kowloonHeroData);
    }

    public static Map<Integer, Map<Integer, KowloonBuildingConfig>> getKowloonBuildingConfigMap() {
        return DaoHelper.getKowloonConfigDaoImpl().getKowloonBuildingConfigMap();
    }

    public static Map<Integer, Map<Integer, KowloonMissionRoadConfig>> getKowloonMissionRoadConfigMap() {
        return DaoHelper.getKowloonConfigDaoImpl().getKowloonMissionRoadConfigMap();
    }
    public static Map<eKowloonNpcType, Map<Integer, Map<Integer, Map<Integer, KowloonNpcConfig>>>> getKowloonNpcConfigMap() {
        return DaoHelper.getKowloonConfigDaoImpl().getKowloonNpcConfigMap();
    }

}
